STEP 5: We want to call all the functions at the bottom of our program so that we can easily reorder them later.

  • Go to and drag out Define Function.
  • Drop the new function AFTER the def flip(): function definition and BEFORE the function call flip().
  • Name the new function headstand(). Make sure it is not indented and nested inside the def flip(): block!
  • In GRAPHICS, from drop Flip Up Down indented INSIDE the headstand() function.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)